package com.wwl.cms.utils.designModeTest.observer;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/13 19:20
 * @description:
 */
public class CurrentConditions {
    //温度，气压，湿度
    private float temperature;
    private float pressure;
    private float humidity;

    public void update(float temperature,float pressure, float humidity){
        this.temperature = temperature;
        this.pressure = pressure;
        this.humidity = humidity;
        dispiay();
    }

    public void dispiay(){
        System.out.println("***Today temperature:"+temperature+"***");
        System.out.println("***Today pressure:"+pressure+"***");
        System.out.println("***Today humidity:"+humidity+"***");
    }


}
